import 'dart:convert';

import 'package:flutter/material.dart';


void main() {
  runApp(MaterialApp(home: const SecondScreen()));
}

class SecondScreen extends StatelessWidget {
  const SecondScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Second Screen'),
      ),
      body:
      Row(
        children: [
          Expanded(
            flex: 10, // 占用 1 份比例
            child: Container(color: Colors.red, height: 50),
          ),
          Expanded(
            flex: 10, // 占用 2 份比例
            child: Container(color: Colors.blue, height: 50),
          ),
          Expanded(
            flex: 10, // 占用 1 份比例
            child: Container(color: Colors.green, height: 100),
          ),
        ],
      )
    );
  }
}
